/*
** power.c for  in /u/all/caille_c/cu/minitalk/client
** 
** Made by carole cailleux
** Login   <caille_c@epitech.net>
** 
** Started on  Wed Feb 24 15:16:56 2010 carole cailleux
** Last update Wed Feb 24 15:17:09 2010 carole cailleux
*/

int		power(int nb, int power)
{
  int		i;
  int		res;

  i = 1;
  res = nb;
  if (power == 0)
    return (1);
  while (i < power)
    {
      res = res * nb;
      i++;
    }
  return (res);
}
